import { createStore } from 'redux'
import reducer from './reducers'
import { composeWithDevTools } from 'redux-devtools-extension'
const store = createStore(reducer, composeWithDevTools())


// 拿到了类型  //可以当做固定写法
export type RootState = ReturnType<typeof store.getState>


export default store